HW for Java class in NEXT