Change the way to tokenize and to group exercises
Use priority to sort exercises