JavaBook codes