created DeviceContext class