Seol mar théacs é seo: X-ray Diffraction of Functional Materials