hanoi list prototype