orientation sensor implemented and sample activity added