I study the implementation of Response theory (polarisation propagator approach) for X-ray absorption spectra simulations. In other words, I try to understand how light interacts with matter.