Update code to make more readable and add least_popular_color method to make test pass