- Made DeviceInfo fields private - Implement NewDeviceInfo constructor
The variable which gets assigned a value from a list element on every loop iteration is always the same. Getting a pointer to this variable results in the same pointer on every iteration. Rather get a pointer to the actual element of the list.