work in progress - code has errors, but shows what was my intention - to split view from logic, I want to make common model for view and logic as one object