added array_test and [] method
added each function