Implemented urn model.