Listing 6.10 error

Typing listing 6.10 into the REPL console gives me the following error:
error: unresolved reference: input

Should input be replaced with finalBoss?