how to create a new object using assign method