add: a complex example