wrote methods for lowest and highest value for categories
fixed merge conflicts