working on hw2-2