exercise #12, domain and subdomain matching