Model implementation

implemented the basic models, still need navigation