started exercise 2 for homework 2