Add solution to my-but-last and my-nth.