set up files and wrote model