The Green Leaf as a Heat Engine