Added examples for throwing exceptions;