making the min and max number of words a constant and using throughout