Created Model and implemented Observer pattern for MainView