The Attributed String Demo reproduction (CS193p, Lecture 5)