Changed PageObject to a class