Because of his good conduct, Medhat gets freed from jail before the end of the sentence assigned to him. After his release, he thinks back on his experiences and what he accomplished as a result of his negative friends, so he decides to behave well.