finished questions 1-3 in hw1.1