create IdGenerator Class and generateId Method, fixed path errors