Sentence memory: A theoretical analysis