animals get energy by eating plants or other animals