Added the Dates.now() method and used it in place of new Date() to make
the code more readable.