Wrote the arrayUnion func