what are the steps in measuring resistance