Simple ATM/calculator implementation from Xcode