lines fit now in less than 80 columns
name of variable called array changed to valores
variable called name renamed valor_actual
method initialize removed
variable called l renamed to numero_actual
comments removed
error in assignation of values for variable valores
nil at the end of the method removed
variable hash renamed resultados
class name and method name changed modified
ternario operator implented intead of if and else