device instansiation example