Added sample exceptions code