Complete same_first_last and make_pi