Added a copy constructor to the class composition example