rewrite portions of modulo.pl
make Pools.pm object-oriented