added some more examples, and refactored intervals