A Doll′s House″ by Henrik Ibsen

What is Dr. Rank’s purpose in the play ″A Doll′s House″ by Henrik Ibsen?