show_stats method