device number allocation
class creation