factor out common example code
explanation of tuples