A Treatise on Gear Wheels