Create a main function to generate models.