Added common.cpp (which I forgot to do earlier).