How does a caterpillar get it's energy?