An experiment with the Monad functional design pattern in Ruby