This sample shows a error-prone method.