Assignment 4: Goodness of fit test