A purely functional interpretation in Scala of Allen B. Downey "Think Bayes"