created a tools package with some statistics functions