generate model and add data