Time Travel in Scala: CPS in Scala (blog.knoldus.com)