Cognition and modeling: Foundations for research and practice