fixing the imported line class and looping through name, location and rating in the list method