def only(names)
      filtered_stats = @stats.select do |stat|
        names.include? stat[:name]
      end
      StatsRegistry.new(filtered_stats)
    end
def only(names)
      filtered_stats = @stats.select do |stat|
        names.include? stat[:name]
      end
      StatsRegistry.new(filtered_stats)
    end
Public: Creates a new registry with only the stats included into the provided ones

 names - An Array of stats names to include

 Returns a new StatsRegistry with the selected stats