The Mind's Machine: Foundations of Brain and Behavior