This is the code I used in the "testing" demo at NYU SWC bootcamp.