add a demo of prototype pattern.