Towers of Hanoi group exercise in class