add example using controller
add example using controller