Submission for hw2, a little late but working correctly, and altered code to reflect the special statement Alan made (forcing a rewrite of complete parts)