changes made to better fit assignment requirements, tested, debugged, and comments altered.