Implemented a copying protocol in the Stack class.