The instructional design for teaching to solve well-and-ill-structured problems