This should be ```$grades```, not ```grades```.