added some answers to hw1/q3/ dir (question 3 of homework 1).