Understand the working principle of a Stirling engine.