Added reference implementation for shallow-copies