Completed exercise 9-1 through 9-4