Tarred up HW4 with the dirivation write-up