Work on chi-square test