Implemented model metaclass