Add getOrientation and basic example