Rotate list

Improved version