Completed exercise 12-3