Update sample code to conform to 3.0.0 codebase.