optimize(ex2,ex3): establish better project structure