Create code book