completed ex 3.5 and 3.6