interval object example