calculator assignment for IOS