adding array.add method