updated experiment2.js