added array set (chapter 2)