A gasoline engine is just a machine that converts chemical energy into thermal energy and finally to mechanical energy