turn docs into runable code