add getSubClasses method