babynames solution and output