finally sample code!