fix a bug and add survey and problem class