Fundamentals of Cognition