Creating a namespaces and apply functions