Added comments to part a, wrote part c in pipair_partc.cpp