Classify rational numbers using a diagram