finished problem 2 on hw3
completed first section of hw3, problems 1-6