copy in some sample code