added size.hpp and size.cpp files with new additions