a media library we had to code at our university in C++