Code for exmple 3.5