initialize the @stats in the initialize method and fix rubycop warnings