Former inmate, current mayor offers hope to graduates