Implemented coreLearn()