implemented model relationships