Moved Namespace declaration up to the top of constructor