Add chapter5g sample