Index: app/src/lib/word.cc
===================================================================
--- app/src/lib/word.cc	(revision 25ae32e4c2354e0ed6756bbe1de83f39cd814652)
+++ app/src/lib/word.cc	(revision ac7d97018efb6419eb3d840b7767294d8be71ed8)
@@ -23,5 +23,5 @@
 
 //---------------------------------------------------------------------------
-int Word::cmp_w(Word a, Word b) {
+bool Word::cmp_w(Word a, Word b) {
   return (a.w_suf() > b.w_suf());
 }
@@ -124,6 +124,12 @@
     tab.resize(tab.size()*2);
   
-  tab[cnt].form(fo);
-  tab[cnt].w_suf(0.0);
+
+  Word o;
+  o.form(fo);
+  o.w_suf(0.0);
+  tab.push_back(o);
+//  tab[cnt].form(fo);
+//  tab[cnt].w_suf(0.0);
+
 
   //  if(cnt<MAX-1) {
@@ -132,4 +138,29 @@
     tab[cnt]->w_suf(0.0);
     tab[cnt]->w_pref(0.0);*/
+    return cnt++;
+    //  }
+    //return -1;
+}
+
+//---------------------------------------------------------------------------
+
+ //TYMCZASOWO TAK(DLA CORA)
+int Words::add(const char* fo, float weight)
+{
+  int i = find(fo);
+  if(i!=-1) {
+    return i;
+  }
+  
+  if (cnt>=tab.capacity()-1)
+    tab.resize(tab.size()*2);
+  
+  Word o;
+  o.form(fo);
+  o.w_suf(weight);
+  tab.push_back(o);
+//  tab[cnt].form(fo);
+//  tab[cnt].w_suf(weight);
+  
     return cnt++;
     //  }
Index: app/src/lib/word.h
===================================================================
--- app/src/lib/word.h	(revision 25ae32e4c2354e0ed6756bbe1de83f39cd814652)
+++ app/src/lib/word.h	(revision ac7d97018efb6419eb3d840b7767294d8be71ed8)
@@ -12,4 +12,6 @@
 
 using namespace std;
+
+
 
 class Word
@@ -37,5 +39,5 @@
   //  float _w_pref;
 public:
-  static int cmp_w(Word a, Word b);
+  static bool cmp_w(Word a, Word b);
 
   Word() : _len_suf(-1) { *f='\0'; returned=0; };
@@ -76,4 +78,5 @@
 
 };
+
 
 inline Word::Word(const Word& word)
@@ -119,4 +122,5 @@
   void clear() { cnt=0; tab.clear(); }
   int add(const char* fo);
+  int add(const char* fo, float weight);
   int add(const char* fo, const char* des);
 
