implement menu to reverse sentences