implemented prototype pattern in model-collection