Is it possible that in the routine "scadd" (Chapter 8) ycoord and xcoord have been accidentally exchanged in the code ?