Completed cramers()
Finalized for testing on lab computers