new get all grades function