Based on http://www.lcg.ufrj.br/Cursos/CGECI.