This `section.toLowerCase` is referring to the `section` in the match statement, rather than the case class which is probably what you want, but it is basically shadowing the outer variable... Name change!