How Karl Marx learned foreign languages