HW4 complete, explanation et al.