finished stat task, refactoring task