Implement a Selma solution

Here it is :).