almost finished with exercise 1 writeup