Create exercise 5.7.c