Java OPP Homework