Added a simple example
Added an example on how errors can be used