added more sample codes