using the 'setTime' function on 'constructor'