Update learn.cpp