adding device class