added solution and guide to problem 6