Fixed errors in model.hpp, now it compiles again