Exercise: simple calculator