Create P_history.cpp