refactoring person in sample3 and 4