Added contains and copyInto methods