HW3 programming assignment done, dirty but done.