Replaced redundant variables with instance variables set in class ATM