Attempt at a subset generator