added class to combine records and started getting api working