Pass range val in constructor