Use maximumBy and comparing
Use maximumBy and comparing