add function to create problem and create survey