Text this: Elements of logic