I did the same thing with a rear wheel that I found in the dumpster. Works really well but I used the cassette that was on the wheel. I popped it off and it was an old worn out Shimano cassette but the 12t cog was fine so I used that. Here is how it ended up: