coding exercise - Edindx