Add learnPCode.m