Calculator interface, user input checking, boilerplate