edited code book and how to code variables