assignment 1 - exercise 2.1.2