Complete the sample code.