Completed exercise 12-2