different ways of using range function