adding setOrientation and getOrientation