Implemented statistic logic to descending array