Chapter6: Replace PathElement (deprecated) with Segment
Chapter6: Import scala.language.postfixOps
Chapter6: Remove unused import statement