added documentation for Problem 1