Exercise 1.17 - multiplication through addition