Tool for learning foreign languages