solution for hw 1 part 2 429535