Add a HiveClient class and invoke it from main program