Calculator in iOS platform