class exercise inheritance and inject
used max.by and min.by routins for class methods
added pry-byebug