It's a tech tree! You need firstly to build laboratory and then 5 farms. After that you unlock factory. After building factory you unlock stables. After building stables you unlock mill. There are also tech tree locks placed on arsonist and knight units. They unlocks when you spawn around 50 archers or swordsman accordingly.