Create set_partition