Assignment clone function implemented