Added energy computation program.