Chapter 3. Advanced Pig