wrote user model and spec