A Heat Engine Having Carnot Cycle