ZD and reinforced learning for prison