First attempt to to do ATM simulation from Deitel's book