Add variable for resulting value

Add variable for resulting value in the console