Improved Gear Template Class