varargs and nested classes