rotation control now working in example 4.5