Example code to accompany NICAR 13 talk on creating reusable components