Adding calculator exercise from chapter 3