HUDSON, N.H. — Three generations — the youngest just 1 year old — were on the campaign trail for Bernie Sanders on Monday in hopes they might edge the New Hampshire election in his favor.

Anais Surkin, her daughter Amalia Surkin and her father Marvin Surkin, all of Greenfield, Mass., donned Sanders pins and braved the cold, rainy weather to go door-to-door and stump for Sanders.

“This is what democracy looks like: All of us out here together in the streets getting behind someone,” Anais Surkin said.

Anais Surkin — a local union president for UAW 2322 — said politics is a long-held family pastime, but it was the first time she felt compelled to canvass for a candidate as she headed out to knock on doors with her family in New Hampshire on Monday afternoon.

Anais Surkin said she thought it was important to teach her daughter about “collective action and coming together in the name of justice” from a young age.

“Whatever the world is going to look like as this kid comes along in this 21st century and in the 22nd century, she’s got to participate in making it happen, so she’s got to get prepared,” Marvin Surkin said.

Family friend Hanna Levine, a retired preschool teacher from Northampton who joined the Surkins, said bringing children along helps “project values.”

“Political campaigns are certainly a reflection of values,” Levine said.