 		let numeroItems = Double(textToAnalyzeField.stringValue.characters.count)
 		let symbols = textField.stringValue.lowercased().characters.map{String($0)}
 		
-		let rawResults = calculateFrequency(of: symbols)
-		let frequencyResults = rawResults.map{(simbolo, frecuencia) in return (simbolo, (Double(frecuencia)/numeroItems*100))}
-		let formatedString = formatFrequency(results: frequencyResults)
+		let rawResults = calculateNgramFrequency(of: symbols, withNgramLength: 1)
+		let frequencyResults = rawResults.map{(simbolo, frecuencia) in return (simbolo, (frecuencia/numeroItems*100))}
+		let formatedString = formatFrequency(results: frequencyResults, taking: frequencyResults.count)
 		self.ResultsLabel.stringValue = formatedString
 		
 		let IC = calculateCoincidenceIndex(of: rawResults, with: symbols.count)

		
	}
	
	
	func calculateFrequency(of symbols: [String]) -> [(String, Int)] {
		
		var results =  [(String, Int)]()
		for letra in symbols {
			if let indiceLetra = results.index(where: {(simbolo, frecuencia) in simbolo == letra}){
				let elemento = results.remove(at: indiceLetra)
				results.append((elemento.0, elemento.1 + 1 ))
			}else{
				results.append((letra, 1))
			}
		}
		return results
	}
	
	func calculateNgramFrequency(of symbols: [String], withNgramLength: Int) -> [(String, Int)] {
		
		var results =  [(String, Int)]()
		let conteo: Int = symbols.count - withNgramLength
		var index = 0
		

		return parcialResult
	}
	
	func calculateCoincidenceIndex(of frequency: [(String, Double)], with textLeght: Int ) -> Double {
		
		var acumular: Double = 0
		for (_, frecuencia) in frequency {
			acumular += frecuencia*(frecuencia-1)
		
		}
		return acumular/Double(textLeght*(textLeght-1))
	}
}
