A Layered Network Model for Learning-to-learn and Configuration in Classical Conditioning