Started prototyping select range function