updated sampe code style