Update p4.cpp