Sample code for my rotation problems.