Problem 1 writeup complete.