Fix typos in "Functional Programming"

"factor" -> "factory"
"descired" -> "desired"