Change Result class to Set