class for data records & pseudo main