Adding getNamespaces method