Adding solution part 1.