creating base array collection class