solution writeup for problem 1