solve part 3