Code from my APCS class