Move code to doc