Add a code sample for assertions
Incorporate @ashald's comments