My Q2 project for AP Comp Sci