Rearrange code sample.