PHILADELPHIA (CBS) — Veterinarians at Penn Vet used a 3-D printer to create a prosthetic leg for an injured parrot.

A 34-year-old Amazon parrot named Pete was attacked by a fox in the backyard of his Lehigh Valley home and lost a leg.

READ MORE: Man Injured After More Than 2 Dozen Bullets Fired In Hunting Park Shooting, Police Say

Delta ‘Sorry’ For Booting Family Off Plane

It took some trial and error, but veterinarians fashioned a prosthetic leg for the parrot by using a 3-D printer.

READ MORE: Pennsauken Police Searching For Hit-And-Run Driver Who Killed Shadid Fauntleroy While Crossing Route 130

Pete turned out to be a great candidate for the technology.

Firefighters Rescue Ducklings Trapped In Drainage Ditch

MORE NEWS: Ben Simmons Saga: Sixers Suspend Simmons 1 Game For 'Conduct Detrimental To The Team'

The veterinarians say Pete will be fitted with new prosthetics as they improve the design.