write part of statistics task