Simulation of ATM