defining model