finish stat module. draft of spec