Create private classes in Java