moved sample code.