a ruler is used for measuring