implement adding a device based on a device model