finished hw3 pt3 :D