rewrite create_problem method