Update ranges()

Also updated testing file to reflect the data in the document I am
working from.