AN APPROACH TO AUTOMATIC PROBLEM-SOLVING