Added methods to set and get the current LinkedList obj.