You are in jail because you didn't want your friend to get in trouble , while you are living in jail for 3 years you go through a lot of situations and obstacles that only make you stronger .
When Matthew Adalhard hacks into the Pentagon to prove to his friends that he's smart, he gets caught. Of course, now in the system, his only grace is that he gets a choice. Go to jail for fifteen years or go to a counselor the judge prescribes.
He chooses the latter, and his counselor turns out to be God.