Adding calculation exercise from Chapter 1