Code for example for 3.5 and modified example 3.12 to include 3.13/3.14/3.15