Worked on copy vs reference semantics