Add some comments to p2.cpp for easy reading.