Generates user model