added owlvisitor class to serialize objects