Model

Implement model.