Work for Effective Java class