Improved the stream operator to take advantage of friend status