Added code for Book.cpp, Media.cpp, Periodical.cpp

Just a starting point, not sure with the virtual keyword.