remodeling tree and setup makefile (step 1/3)