Blog code for training.