Declaring namespaces outside of the main() function is convenient because it saves us the trouble of having to declare the namespace everytime we need to use a function.
But declaring the namespace like this runs the risk of causing namespace clash; having different functions with the same name.