Almost done, just have to sort

and then add an additional check against naive method of throwing everything in there