Added a copy constructor to the Data class