Calculating grades.

signed-of-by: Rafael Reggiani Manzo <rr.manzo@gmail.com>