modularising into mvc - work in progress

- [] move model into own file