 Screenwriter Akiva Goldsman (qv) had plenty of personal experience  to draw on in developing the story; he had previosuly worked as a  child care counselor and had developed a method for training mental  health workers, and had also grown up in a house where his parents  had established a group home for emotionally disturbed children.