Week 2, assignment 2, Exercise 8 -model