Foundations of conditioning and learning