Defining model and importing model into file