Extract main method in print.mperson