broke implication into header and main file, started testing table in main