example with xml and annotation