create class Hanoi