added spec for Limited::Interval
fixed the spec
implemented the interval class