Added createCodeTree