An Implemented System for Cognitive Planning