sample code.