move some example code for the book "Sword to Offer"