working on slicing tasks; incomplete and will probably discard this checkin and use Cliff's groupby.