Updated grades function call