passing data from class Data to class Library