add method to get title