IOS Calculator for school assignment