added an example for the prototype pattern