add a static manager demo: static_manager.cpp