Added 2.4.0 example code. Through page 318