modifying original ATM program ex. 6.0