Created the DynamicData class to make it more generic and usable for all types of data objects