add a Trainer cell to replace the Python mess