List exercise constructing a list from a range