exercise using setInterval() and clearInterval() functions