Code third phase

Add device plugin