move sample code