Make example more generic, do not rely on PODness of type