Updated a sample code.