Basics of XAS