Creating a tech tree

i just did what i wrote above and it works.