add copyright notice to sample