Distance learning of foreign languages