Fix harmonic method
Use reduce instead of inject
Use the Rational number constructor
Fix digits method
Use to_s and split to chars instead of dividing by ten
Fix average method
Use reduce instead of inject
Add an empty? check