doc and sample