wrote user model