Creating functions to read label files