A class assignment in Java