work on hw3-1