Living like a butterfly

Before the egg there was the thought
and the egg became a caterpillar
which led a good life until
it began to spin a cocoon
turning its outside into an inside.
And then one day the inside turned
into the outside as a butterfly.
A constantly changing morphology.