Simulation of Cognitive Processes