changed console.log to equal the requirements of the problem.