Generation of problem solving cases