Update Extraction.scala

Solve the compilation bug from Extraction.scala