during peter 's third year of imprisonment , the year in which peter was first able to do thirty chin-ups in a single effort from his bedchamber 's central beam , peyna resigned his post as judgegeneral in disgust .