Created a callback class to contain handling of data