learner.py code, along with a few updates to row_creator