solve part 4