solution for hw 2 part 1 7936248