Adaptive behavior in economic and social environments by