Updates sample code.