Gravitational Potential due to Rod and Ring