Add examples. Fix afterThrowing based on work with examples