STAMFORD - A team of Stamford middle school students received an award today for winning first prize in the Rube Goldberg Machine Contest 2013.

Trinity Catholic Middle School seventh-graders successfully built a machine that could hammer a nail into a piece of wood, beating out submissions from 54 national and international teams. The Stamford students worked for two months on the project until their trial and error process finally paid off.

They submitted a two-minute video for a panel of judges that included Rube Goldberg’s granddaughter, Jennifer George. Goldberg was a Pulitzer Prize winning cartoonist and engineer who was known for creating complicated machines to perform simple tasks.

The team says they are already working on next year’s project for a machine that fastens a zipper.