Add grades functionality