Stats package with tests