converted examples to use namespaces