added Selector class