adds method that grabs the titles