solution part2