sample for xml-based classes