changed names of variables and methods
example script for ChiSquareTest