exercise 5.1 finished.