Added full array and used .length method