add sample code with comment.