adding interval/with-interval/remove-interval (w/ tests)