solution part6