Assignment for Advanced Java course