Adding instructor resolve grades function