Defining namespacing and allocation methods. Simple main