Model implementation

set up the minimal model