A Carnot’s engine with a perfect gas acting as the working substance