finished hw1 working on hw2