I have successfully used sub class's within class's, however, I stored the sub class in a variable, it looks like you are trying to use a function to access it.
Be sure the function returns an object, or if you didn't mean to use a function, remove the brackets. --BB