Grading diferents groups automatically, including the empty grades