assignment: generate model