coded exercise 1.1