Two structs will be needed: one with ints, other with qreals for average method.
Can I just

```c++
template<class T> struct sample {
  T download;
  T upload;
};
```

?