updated ch13 examples