Created header class and implemented output stream.