Added code through exercise 14