adds method to take in actual Data and place it in Object array