when en prison he wrote several books