Last night's homework

Sorry it needs a cleanup, I will get this done when I have time.