Provide example using the optional target syntax

Took a while for me to actually figure out how the optional target worked and thought it would be handy to provide an example in the readme.