Don't use generic type R
More work
And it compiles again