Update pig.cpp