added function

added a function with a console.log