start to go forward on HW2
try to use stack and scanner class but fail