Working code for basic 2x2 table