Parse this person name:

Logan, Samantha M. (Samantha Mary), 1836-1895
user
first_name: Samantha
last_name: Logan
middle_names:
- Mary
temporal:
- start: 1836
  end: 1895
  type: life_span
titles: []
extra_info: []
assistant