Adding first approach to parse the text file to create rules