xml and classes