https://sheremetov.com/programming/prolog-continue/