added part1 of hw4