Exercise 2 week 6 using methods