Took data out of struct, return it from read_data function