Updated examples to use namespaces for local classes