split gencode.py into more files
Add pattern Observer step 2