Parse the file into respective classes