Created the copy constructor and implemented the default constructor