added another usage of range()