added bonus question 4 to hw2