Added an example for error checking