maked sample code