added homework writeup.