Thermo Magnetic Engine