build a working calculator in x-code