adding sample code