Made the Device class which is to hold each device and its device-specific methods. Untested code.