sample code programming