the code in openbook