wrote small calculator