Inmates learn from mistakes, eagar to curb violence