added insert to array class