check sample code