Update and rename base.cpp to base.h