Integrating cognitive ethology with cognitive psychology