refactor Result computation expression using CPS
refactor list computation expression using CPS