Added implementation for operator=