basic mvc model implemented