Adding reverse_name function