added MManager.cpp and .h