example for interval