Using inner and nested Java classes