IdGenerator class