Understanding the Workings of X-rays