You must not add a second setup() or draw(), you have to merge those given in the example with yours.
For example, replace your size() with the one given, just providing your dimensions.
For example, replace your size() with the one given, just providing your dimensions.