Code for project 2 in ISU's Com Sci 228