statistics with useful things in main method