Changed the results to a dictionary and includes teacher's title