Generators and gasoline engines