add a function of createNew.

This function is new a object(deep copy).