added first and last array methods