Added a method to show the interval as a String.