do not get ya, just put variables declaration there + aux functions, main() off course should be out of namespace. It should work..