Working on building the correct relations when reading in a file