gems by complexity