example with right-associative operator