What is Cognition? An evolutionary perspective