completed ex3 pt 1, 2