Foundations of Cognitive Processes