CEDARBURG, Wis. (AP) — A duck that lost its feet to frostbite is waddling again thanks to a Wisconsin middle school teacher and a 3D printer.

Vicki Rabe-Harrison rescued Phillip the duck and, after watching a video of a 3D printer online, turned to South Park Middle School teacher Jason Jischke in Oshkosh for help.

READ MORE: Weekend Winter Blast: North Shore Residents Digging Out From Under More Than A Foot Of Snow

Rabe-Harrison tells WBAY-TV that she assessed Phillip’s quality of life and was planning to put him down when Jischke called to say he and his class were working on the project. It took them six weeks of trial and error to get the prosthetic feet just right.

READ MORE: Minnesotans Out Finding Fun Amid Cold Snap

Phillip was a bit wobbly when he first tested his new feet, but he has now joined other birds and animals at a sanctuary in Cedarburg, 20 miles north of Milwaukee.

MORE NEWS: Man Gets 25 Years For Fatal Stabbing Near Jordan

(© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)