Reimplemented DownloadManager using a C++ Class