Code for third project in ISU's Com Sci 228