APCS homework