How to remove speedo drive gear?

It was pretty easy getting the old gear out. The old gear is shot so i'll have to get another 40 tooth gear when I go back to the 3.91's eventually. put it all back together and tested out just to see if the speedo moves. Fired the car up and put it in gear while in the air and the speedo was moving. Won't know how accurate it is till spring though. On to the next winter project. Clean up the trunk area and detail it.