Assignment complete minus the console.log function
Deleted console.log call from within function to make it work