All code related to the "Energy Level Diagram".