Caterpillar evolves into its cocoon