Create function for title