another iteration, this time a little better understood and "modular"
plus some sample data for teh lulz