first working/compiling version of minitree