Adapt to the prototype idiom.