updated collection class to have where and findWhere methods