Added first function

Added my first function and then deleted the remaining unnecessary
console.log.