Implement toContain sub