If that's the case you may want to use classes.
I'll post an example soon.