fix compilation error for 05.answer.scala in chapter 12