add the time() method