Added console.log()'s

- Created console.log()’s to log the outputs