Add example code
add slightly more complicated example