Update sample code root creation.