first attempt at exercise, which doesn't work
initial for range.html