hw4 part0, part1