I have a list in prolog like this: [a,b,c,d,e].
Then the idea is to exam every 3 items like [a,b,c]; do something with a and c, then store b. The same goes for [b,c,d