Added Immutability to HW5

Added immutability ad deep copying