Hash init method