upload sample code