Determine the data set's range.
Multiply the range by the desired number of groups, then round up.
To make your groups, use the class width.
Calculate the frequency for each of the groups.