the movie was based on the autobiographical book called sophia her own story