calling methods with setInterval()
clock using a date object and setInterval()