finished P1 writeup