Added boilerplate function to create models.