Added constants instead of hardcoding the max and min values into the program