added rotating square example