Added console.log

equation not working as intended