Transformable engine