Fixed sample code.