add WriteHi class

Please accept pull request to added a simple WriteHi class.  Thanks.