modified printer and started a table class