if you change this to a closure, then it will pass without the serialization problem, e.g.
```scala
val parse = (s: String) => {
  val split = s.split("\\|")
  Person(split(0), split(1), split(2).toInt)
}
```