Added console.log

Added console.log to make sure the code was working properly and it is…