Language and Music as Cognitive Systems