Moved the `namespace` stmt. above `define()`

"Fatal error: Namespace declaration statement has to be the very first statement in the script"