Implemented model hierarchy.