Constructing a frequency distribution table