test sample code