Adding the to array method