Added possible clauses to calculate min and max ages. They still need to be tested.