* Changed rotate function from private to protected.