Housefly

The housefly larva goes through three stages of development.

An excerpt from the article 22 facts about Housefly
At the end of the third stage, the larvae crawl to a dry, cool place and develop into pupae. The pupa has a cylindrical shape with rounded ends. It reaches a length of about 1.2 mm and consists of the last stripped skin of the larva. At first, it is yellowish, darkens with time, and becomes practically black with red and brown tint.