Creating a title function