Manipulation with intervals