What role did Joseph play in the story and what was the impact of him accepting Mary as his wife when he discovered she was with child.