Added a writeup for the HW4 dirivation