finished instanceArray.js