Add console.log for return value in example