Update compound.cpp