Added AbstractShape interface and Interval.