Photoabsorption and sum rules