added default value to person's dob
split out some code into another file for readability