... saving the records. Then I created a class for processing the records with associated methods. These, of course, called the database classes as appropriate. In the end, everything was organized in easy to track .prg files, it was easy to document, and using meaningful names, the code was easy ...