Working version of small calculator example