Add code of learning