First two parts of exercise 1 complete