wrote solutions to questions 1 and 2.
finished hw3.