modified:   model.cpp