Part1 of hw4