new file:   palsquare.cpp