initializing datahook class