Better device orientation example