Changes in diagrams. Implemented model layer