added/solved week2 question 5, 8