Peg has a new leg and a new lease on life.

Inquisitive Duck
Credit: georgeclerk/ Getty Images

A one-legged duck from northeastern Arkansas named Peg has a new lease on life thanks to a group of area high schoolers.

Eighth-grade science students at Armorel High School used a 3-D printer to create a prosthetic leg for the eight-month-old Indian Runner duck found without a foot.

Peg's owner, Patsy Smith, told KAIT that Peg's foot had been chewed off by a turtle shortly after he hatched, and his leg became increasingly irritated as he grew. "I began to do a lot of research and I even reached out to a company in Ontario, Canada to a rescue group in Tennessee," said Smith.

That's when the students learned of Smith's dilema and reached out to her with a way to help Peg.

"We already were looking into ways of creating sophisticated creations with our 3-D printer and we saw that we could do just that for a duck," said Alicia Bell, the director of the high school's environmental and spatial technology lab. "Animals bring everyone together and this was just a great way to show how work in the classroom can impact real life."

WATCH: Man Crafts "Wheelchair" For Adorable Disabled Fish

It took about 30 tries before students Matthew Cook, Darshan Patel and Abby Simmons successfully built an appropriate leg. Smith said Peg now walks and runs like a normal duck.

"Well not only is it heartwarming but it is exciting and I am just so grateful that there are people that truly care and they have gone out of their way to do all they can to make it as comfortable for the duck," Smith told KAIT.