Added rotate method