implemented behaviors for modeling a contingency matrix, performed
additional refactoring and placement of classes.