I spent an hour trying to make this code work with generics, but I encountered new issues. Stackoverflow hasn't helped my confusion. I hope talking with someone about my issues tommorow will help me resolve them as trying the same thing over and over is making my head throb