Implemented stream operator and copy constructors