added class Device.php