lista_materias change from array to hash