added example with a main patch and a subpatch