Implementation the tutorial of tw.codedata