How to define ranges?