Implementing shallow copy