all sample code