Add assertions in example.cc
Add asserts in example.cc

Fix assertions fails.
Merge pull request #2 from antonsukhanov/asserts

Asserts in example.cc