Completed exercise 6-1