On the origin of languages