Rational-comprehensive model of planning