Add contains function; update array example