Add model.py.

That is not what we discussed, but I agree.