problems - rotate functions

Nadya's version Sunday 23.12.14