@simon.vergauwen Thank you very much for the tips and example. It contains a quite lot of new information to me, so I am going to digest all of it, read about the monad comprehension and give a try to options you provided me with. And decide which one to stick to.
Once again thank you for all. lift function is interesting.