update sample code license