Created a thread safe node class with Accessors, Mutators and a toString method.