Finished up to exercise 4.