changed method from sort.last to max, however needed to add a require and include to other libraries as assert_equal was throwing a NoMethodError