I add functionality to read and write in .txt file