Add code gen basic and code gen advanced examples