Generation from zad1 implemented