figure2.js and figure7.js