add comp.cpp