a coding exercise based on duolingo