powerSet code