added some problems and model.cpp