I want that if I select a range of numbers the minimum or maximum should be
selected by a single command