Created a draw_gear function.