Copying features with prototype inheritance