changes to add attributes max and min in Range object.