Added support for rotation in demo
Fixed method signature