use class instead of format to read in the data. This allows for arbitrary classes for reading the data in any format