add the initial training codes