Exercise: STDIN calculator