Calculator exercise