Solution for a coding exercise - Edindx