adding sample
fix lua generator

fix compile error

fix lua