Added a method to the class for writing and reading the syntax.