add array methods class and documentation