A complete example based on the "Towers of Hanoi" game