Implement contains and size