write result to yaml format
add example