all three parts of hw1