Use prototype inheritance to clone objects.