working on classes for representing xml structure