[WIP] model

Implements model