add getOrientation() method and change constructor to set values and increment viewCounter