diff --git a/Makefile b/Makefile
index 5ff3d62246c6194411f5ff394a0e306440027e07..35b6ece2bce2948645cfd67785724fc278704f56 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 CC = g++
-CFLAGS = -Wall
+CFLAGS = -Wall -std=c++11 -std=gnu++11
 
 INCL = -I ./include
 
@@ -12,7 +12,7 @@ EXEC = playunfair
 $(EXEC): $(OBJ)
 	$(CC) $(CFLAGS) -o $@ $^
 
-%.o: %.c $(DEPS)
+%.o: %.cpp $(DEPS)
 	$(CC) $(CFLAGS) -c -o $@ $< $(INCL)
 
 all: $(EXEC)
diff --git a/include/playfair.h b/include/playfair.h
index f2de87b9d7a74981a3bb7119faaab95291ca9ee1..63f510b3fed3de86e148a9e486b1772bd1243fd8 100644
--- a/include/playfair.h
+++ b/include/playfair.h
@@ -3,7 +3,7 @@
 #include <vector>
 #include <iterator>
 #include <sstream>
-#include <cctype>
+#include <algorithm>
 
 std::vector< char > createKM ( const std::string key);
 std::string playfair(std::string text , const std::string key );
diff --git a/playunfair.cpp b/playunfair.cpp
index 73f37507e14182b02b94ec04bc936986d2276774..c68172769b35b637f5b2d43550eb882a797a22b3 100644
--- a/playunfair.cpp
+++ b/playunfair.cpp
@@ -1,10 +1,9 @@
 #include "include/playfair.h"
 #include <fstream>
-#include <algorithm>
 
 void parser(std::string &text){
 	text.erase(std::remove(text.begin(), text.end(), ' '), text.end());
-	//for(const char &
+	std::transform(text.begin(), text.end(), text.begin(), ::tolower);
 }
 
 int main(int argc, char *argv[]){