Add example to branches method

Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>