Adding code from exercise 6.1-7