write energy1 function
add button to click to show energy1 function
add button to show energy
remove debugs, add clarifying comment