write_examples function

Write examples