passed the calc_top_color test with new method
passed calc_bottom_color test by using a method which uses Ruby min_by method