add new sample for create segment. #9

fixed #9