he had been in some funny places , but never in his wildest dreams had he expected to be sitting in a sheriff 's office , deputized , in charge of three men who had beaten him up , and writing his life story .