Plants provide energy to animals in their life processes by