basic interval demo